<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>管理员登录</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="admin/css/all.css" media="screen" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="admin/css/provider.css" type="text/css" />
	<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
	<script type="text/javascript">
		function check(){
			if($('#userName').val()==""){
				alert('请输入用户名');
				$('#userName').focus();
				return false;
			}else if($('#pwd').val()==""){
				alert('请输入密码');
				$('#pwd').focus();
				return false;
			}else{
				$('#login').submit();
			}
		}
		
	</script>
  </head>
  
  <body id="login" onload="document.login_form.userName.focus();">
	<div id="sitewrapper">
		<div id="header">
			
				
		<br />
		</div><!-- /header -->
		<div id="content">
            <div id="main">
                <h1>管理员登录 
                	<c:if test="${error != ''}"><span style="font-size: 9pt;color: red;"> ${error }</span></c:if>
                </h1>
                <form action="login.action"  method="post" name="login_form" onsubmit="return check();">
                    <div id="email">
                        <fieldset id="user-email">
                            <p>
                                <label>USERNAME<span><input type="text" id="userName" name="userName" tabindex="1" /></span></label>
                            </p>
                        </fieldset>
                    </div>
                    <div id="password">
                        <fieldset id="user-password">
                            <p>
                                <strong>Oops - <a href="http://wpa.qq.com/msgrd?v=3&uin=79233749&site=qq&menu=yes">I forgot my password</a></strong>
                                <label>PASSWORD
                                <span><input type="password"  id="pwd" name="password" tabindex="2"></span>
                                </label>
                            </p>
                        </fieldset>
                        <p style="padding-left: 16px;">
                            <input type="image" id="sign-in" name="login" src="admin/images/btn_sign-in.gif" alt="Sign In" tabindex="3" onclick="return check();">
                        </p>
                    </div>
                </form>
            </div><!-- /main -->
        </div><!-- /content -->
        	</div><!-- /sitewrapper -->
  </body>
</html>
